#ifndef _TTY_MICR_
#define _TTY_MICR_

#define NR_TTY 1

#define TTY_BUF_SIZE 32
typedef struct char_queue_struct{
	int8 buf[TTY_BUF_SIZE];
	int8 * head;
	int8 * tail;
	int32 count;
}CHAR_QUEUE;


typedef struct tty_struct{
	CHAR_QUEUE read;
	CHAR_QUEUE write;
	CHAR_QUEUE cooked;
	
	boolean echo;
	
}TTY;

#endif
